Learn how to copy indices including their records, settings, synonyms, and rules.
enableReRanking
setting).
DUPLICATE
to confirm.
copyIndex
algolia indices copy
scope
parameter or command-line option,
to choose what you want to copy: records, settings, synonyms, or rules.
The API keys of the source are merged with the existing keys in the destination index.
copyIndex
method:
copyIndex
creates an empty index with zero records under the new name.indexExists
method.scope
parameter.
For example, to copy only the synonyms and settings between indices, but not records or rules:
scope
parameter, records aren’t copied to the new index.
Existing items of the scope are replaced.
Items belonging to other scopes are preserved.
For example, if you use the settings
scope, only the settings are copied to the destination index, keeping the records, synonyms, and rules.
For more information, see Scopes.
AccountClient
, which is part of the Algolia API clients,
or use the Algolia CLI.
targetIndex
must not exist, or the process fails.copySettings
method of the API clients.